Trò chơi đua xe động vật trong UNITY Engine
114.860 lượt xem;
- InterpolationSineIn.cs
- Interpolations /
- Bapk /
- Scripts /
- Assets /
- project /
1 using UnityEngine;
2 using System.Collections;
3
4 public class InterpolationSineIn : InterpolationProcess{
5 public override float apply(float a)
6 {
7 return 1 - Mathf.Cos(a * Mathf.PI / 2);
8 }
9 }
2 using System.Collections;
3
4 public class InterpolationSineIn : InterpolationProcess{
5 public override float apply(float a)
6 {
7 return 1 - Mathf.Cos(a * Mathf.PI / 2);
8 }
9 }